import React from 'react';
import propTypes from 'prop-types';
import { BackTop } from 'antd';
import Header from '../components/header';
import './index.less';
const Index = (props) => (
	<div className="index-page">
		<Header/>
		<div className="content-box">
			{props.children}
		</div>
		<BackTop/>
	</div>
);

Index.propTypes = {
	children: propTypes.element
};

export default Index;